package com.xmy.cultivate.mapper;

import com.xmy.cultivate.entity.TypeValueData;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 键值对，类型数据，多条数据，比如班级的班主任，学员的联系人 Mapper 接口
 * </p>
 *
 * @author min
 * @since 2022-08-04
 */
public interface TypeValueDataMapper extends BaseMapper<TypeValueData> {

    @Select("select * from type_value_data where for_id = #{forId} and deleted = 0")
    public abstract List<TypeValueData> selectListByForId(@Param("forId") Long forId);
}
